home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950929-19951130
/
000086_news@columbia.edu_Thu Oct 12 20:05:06 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA05864
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Thu, 12 Oct 1995 16:05:15 -0400
Received: by apakabar.cc.columbia.edu id AA15429
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Thu, 12 Oct 1995 16:05:11 -0400
Path: news.columbia.edu!watsun.cc.columbia.edu!jaltman
From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: is there any effect of ANDing a byte with 0377 (octal)?
Date: 12 Oct 1995 20:05:06 GMT
Organization: Columbia University
Lines: 25
Distribution: usa
Message-Id: <45jsdi$f1v@apakabar.cc.columbia.edu>
References: <45ja2n$mqq@cnj.digex.net> <45jru0$ekc@apakabar.cc.columbia.edu>
Nntp-Posting-Host: watsun.cc.columbia.edu
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <45jru0$ekc@apakabar.cc.columbia.edu>,
Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
>In article <45ja2n$mqq@cnj.digex.net>,
>Atiqullah Hashmi <hashmi@cnj.digex.net> wrote:
>>
>>Hi,
>>
>>In one communcation software I work with, I see that before transmiting
>>some chars., they are ANDed with '0377' (octal 377) which is 011 111 111.
>>It seems that it will just leave the 8-bit byte as is.
>>Am I missing something ?
>
The characters being sent are probably being stored in something larger
than a byte. Perhaps a 16bit or 32bit int. In which case the value might
not be an 8-bit char. So 377 will strip it down to size.
Another possibility is that the 377 is assigned to a variable which is used
as a mask. Sometimes to allow 8-bit data, other times to allow 7-bit data.
PS Ignore my previous post. It was very wrong. I must be really burned out.
Jeffrey Altman * PO Box 220415 * Great Neck, NY * 11022-0415 * (516) 466-5495
NEW: OS/2 C-Kermit 5A(191):
ftp://kermit.columbia.edu/kermit/archives/cko191.zip
http://www.columbia.edu/kermit/cko191.html